package com.itheima.utils;

public class UserContext {

    private static final ThreadLocal<Integer> tl = new ThreadLocal<>();

    public static void setCurrentEmpId(Integer empId) {
        tl.set(empId);
    }

    public static Integer getCurrentEmpId() {
        return tl.get();
    }

    public static void remove() {
        tl.remove();
    }
}
